/*
 * Copyright 2010 Mttang.com All right reserved. This software is the
 * confidential and proprietary information of Mttang.com ("Confidential
 * Information"). You shall not disclose such Confidential Information and shall
 * use it only in accordance with the terms of the license agreement you entered
 * into with Mttang.com.
 */
package com.mttang.sys.biz.service;

import java.util.List;
import java.util.Map;

import com.mttang.info.core.ParameterModel;
import com.mttang.info.core.ResultDTO;
import com.mttang.sys.dto.RoleDTO;
import com.mttang.sys.dto.RolePrivilegeDTO;

/**
 * 类RoleService.java的实现描述：TODO 类实现描述 
 * @author acc 2010-6-1 下午07:55:29
 */
public interface RoleService {
    
    public ResultDTO<RoleDTO> findRole(ParameterModel parameter);

    public Long findCount(Map<String, Object> param);

    public RoleDTO findById(Integer id);
    
    public RoleDTO findByName(String roleName);
    
    public List<RolePrivilegeDTO>  findRoelPrv(Integer id);
    
    public List<Map<String,String>>  findAll();
    
    public List<RolePrivilegeDTO>  findPrv(Map<Object, Object> param);

    public void insert(RoleDTO dto,Map<Object, Object> logMap);

    public void update(RoleDTO dto,Map<Object, Object> logMap);

    public void delete(RoleDTO dto,Map<Object, Object> logMap);

}
